<html>
<head><meta charset="utf-8"><title>vim + remote server · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html">vim + remote server</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="246126167"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246126167" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246126167">(Jul 15 2021 at 17:14)</a>:</h4>
<p>is someone working locally using vim and compiling on a faster remote server?</p>



<a name="246126263"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246126263" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246126263">(Jul 15 2021 at 17:15)</a>:</h4>
<p>wanted to share tips an ideas about this</p>



<a name="246126293"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246126293" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246126293">(Jul 15 2021 at 17:15)</a>:</h4>
<p>it may even be a good idea to provide conveniences to work in this way</p>



<a name="246126497"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246126497" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246126497">(Jul 15 2021 at 17:16)</a>:</h4>
<p>I'd like to do <code>:Make build library/std</code> and have that running a remote script to build on the server and also have the output on vim's quickfix</p>



<a name="246126627"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246126627" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246126627">(Jul 15 2021 at 17:17)</a>:</h4>
<p>I know how to do this, I have been a bit lazy to do it :P, but maybe sharing ideas or things with someone that does or is trying to do the same would be nice</p>



<a name="246132421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246132421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246132421">(Jul 15 2021 at 18:00)</a>:</h4>
<p>I do this, though usually without the quickfix integration</p>



<a name="246141858"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246141858" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246141858">(Jul 15 2021 at 19:14)</a>:</h4>
<p>I do something similar, but I just run vim on the build server.</p>



<a name="246141967"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246141967" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246141967">(Jul 15 2021 at 19:15)</a>:</h4>
<p>One thing that I like using is nvim's builtin terminal emulator for building code.</p>



<a name="246142911"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246142911" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Wynn <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246142911">(Jul 15 2021 at 19:23)</a>:</h4>
<p>Do you use mosh or eternal-terminal  (or wezterm server) or something?</p>



<a name="246153834"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246153834" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246153834">(Jul 15 2021 at 20:54)</a>:</h4>
<p>I tried mosh at some point in the past but found it fairly clunky to use. I'm not currently using any multiplexer (I think that's what these tools are called?), plain ssh.</p>



<a name="246153962"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246153962" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246153962">(Jul 15 2021 at 20:55)</a>:</h4>
<p>To be fair I have a rock stable uplink and I don't tend to have any long running jobs.</p>



<a name="246154077"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246154077" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246154077">(Jul 15 2021 at 20:56)</a>:</h4>
<p>Compiling rustc is just about the most intensive task I throw at my build machines.</p>



<a name="246154157"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246154157" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246154157">(Jul 15 2021 at 20:57)</a>:</h4>
<p>That said, I have been thinking that it _would_ be nice to have distributed compilation with virtually infinite parallelism of some sort…</p>



<a name="246154183"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246154183" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Gus Wynn <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246154183">(Jul 15 2021 at 20:57)</a>:</h4>
<p>I find it so hard to switch workflows, and I am used to vim panes for code but tmux panes/windows for terminal haha</p>



<a name="246154388"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246154388" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246154388">(Jul 15 2021 at 20:58)</a>:</h4>
<p>I do use vim splits extensively too. (and use buffers to keep track of "open" files instead of tabs)</p>



<a name="246159466"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246159466" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Lifshay <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246159466">(Jul 15 2021 at 21:33)</a>:</h4>
<p>I use nano with mosh, though that's mostly because I tend to access my server through a near-permanently open Termux  session on my phone, where mosh's behavior of staying around even if my wifi gets temporarily disconnected is really handy.</p>



<a name="246163114"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246163114" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246163114">(Jul 15 2021 at 22:12)</a>:</h4>
<p><span class="user-mention" data-user-id="123586">@nagisa</span> right, the problem I have is that my server is veery far away and I end with an interesting lag</p>



<a name="246163140"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246163140" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246163140">(Jul 15 2021 at 22:13)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> can you share the code/infrastructure or whatever you have to see if I can replicate something similar?</p>



<a name="246164208"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246164208" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246164208">(Jul 15 2021 at 22:28)</a>:</h4>
<p>Yeah, not right now though</p>



<a name="246165116"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246165116" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246165116">(Jul 15 2021 at 22:40)</a>:</h4>
<p>I have this for setting up the remote end of repositories:</p>
<div class="codehilite"><pre><span></span><code><span class="ch">#!/bin/bash</span>

<span class="nb">set</span> -Eeuxo pipefail

<span class="nv">CUR_DIR</span><span class="o">=</span><span class="k">$(</span>basename <span class="sb">`</span><span class="nb">pwd</span><span class="sb">`</span><span class="k">)</span>
<span class="nv">DIR</span><span class="o">=</span><span class="si">${</span><span class="nv">1</span><span class="k">:-</span><span class="nv">$CUR_DIR</span><span class="si">}</span>

ssh <span class="nv">$REMOTE_SERVER</span> git init Build/<span class="nv">$DIR</span>
ssh <span class="nv">$REMOTE_SERVER</span> git -C Build/<span class="nv">$DIR</span> commit --allow-empty -m <span class="s2">&quot;t&quot;</span>

cp ~/Edit/build-script.sh ./build.sh
chmod u+x ./build.sh
</code></pre></div>
<p>and <a href="http://build-script.sh">build-script.sh</a> is like this -- but it usually ends up with some minor per-project edits around setting or not setting incremental etc. </p>
<div class="codehilite"><pre><span></span><code><span class="ch">#!/bin/bash</span>

<span class="nb">set</span> -e

<span class="nv">HOST</span><span class="o">=</span><span class="nv">$REMOTE_SERVER</span>
<span class="nv">CMD</span><span class="o">=</span><span class="s2">&quot;cargo check&quot;</span>
<span class="nv">DIR</span><span class="o">=</span><span class="s2">&quot;Build/</span><span class="k">$(</span> <span class="nb">cd</span> <span class="s2">&quot;</span><span class="k">$(</span> dirname <span class="s2">&quot;</span><span class="si">${</span><span class="nv">BASH_SOURCE</span><span class="p">[0]</span><span class="si">}</span><span class="s2">&quot;</span> <span class="k">)</span><span class="s2">&quot;</span> <span class="o">&amp;&amp;</span> basename <span class="sb">`</span><span class="nb">pwd</span><span class="sb">`</span> <span class="k">)</span><span class="s2">&quot;</span>
git push -q -q -f <span class="nv">$HOST</span>:<span class="nv">$DIR</span> <span class="k">$((</span>git stash create <span class="o">--</span>quiet<span class="p">;</span> <span class="nb">echo</span> HEAD<span class="o">)</span> <span class="o">|</span> head <span class="o">-</span>n <span class="m">1</span><span class="o">)</span>:master
<span class="nv">CMD</span><span class="o">=</span><span class="s2">&quot;cd </span><span class="nv">$DIR</span><span class="s2"> &amp;&amp; git checkout -qq --force --detach master &amp;&amp; (CARGO_INCREMENTAL=1 </span><span class="si">${</span><span class="p">@</span><span class="k">:-</span><span class="nv">$CMD</span><span class="si">}</span><span class="s2">)&quot;</span>
<span class="k">if</span> <span class="nb">test</span> <span class="s2">&quot;</span><span class="nv">$COLOR</span><span class="s2">&quot;</span> <span class="o">==</span> <span class="s2">&quot;vim&quot;</span><span class="p">;</span> <span class="k">then</span>
    ssh <span class="o">-</span>q <span class="nv">$HOST</span> <span class="s2">&quot;</span><span class="nv">$CMD</span><span class="s2">&quot;</span>
<span class="k">else</span>
    ssh <span class="o">-</span>q <span class="o">-</span>tt <span class="nv">$HOST</span> <span class="s2">&quot;</span><span class="nv">$CMD</span><span class="s2">&quot;</span>
<span class="k">fi</span>
scp <span class="o">-</span>q <span class="nv">$HOST</span>:<span class="nv">$DIR</span><span class="o">/</span>Cargo.lock .
</code></pre></div>



<a name="246165146"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246165146" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246165146">(Jul 15 2021 at 22:41)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span></p>



<a name="246165175"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246165175" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246165175">(Jul 15 2021 at 22:41)</a>:</h4>
<p>and then locally I just edit in vim like normal, I don't really bother too much with :Make or similar working - mostly just have two monitors and errors on the other one and manually go to the right place</p>



<a name="246165189"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246165189" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246165189">(Jul 15 2021 at 22:41)</a>:</h4>
<p>that's probably mostly because I don't really do <em>that</em> much development these days</p>



<a name="246165226"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246165226" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246165226">(Jul 15 2021 at 22:42)</a>:</h4>
<p>when I have lots of errors to churn through I might fix the setup</p>



<a name="246168636"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246168636" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246168636">(Jul 15 2021 at 23:27)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> thanks, yeah, I have some scripts like that</p>



<a name="246168663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246168663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246168663">(Jul 15 2021 at 23:27)</a>:</h4>
<p>thanks because it may also help me not waste too much time and build a proper new one that works for me</p>



<a name="246168715"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246168715" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246168715">(Jul 15 2021 at 23:28)</a>:</h4>
<p>I have :Make and all that working on the compiler, I think it should be easy to adapt to these usage</p>



<a name="246168731"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246168731" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246168731">(Jul 15 2021 at 23:28)</a>:</h4>
<p>if you're interested, once I finish building my stuff I can share</p>



<a name="246168745"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246168745" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246168745">(Jul 15 2021 at 23:28)</a>:</h4>
<p>in particular the right integration of that with vim</p>



<a name="246169536"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246169536" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246169536">(Jul 15 2021 at 23:40)</a>:</h4>
<p>I think I have something in my vim configs that make it work with vim's quick fix stuff, I just don't really keep track of where that lives so hard for me to reference it</p>



<a name="246172468"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246172468" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246172468">(Jul 16 2021 at 00:27)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> I'm working on a setup for this, and I would appreciate any input you have on what you would require from it.</p>



<a name="246176990"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246176990" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246176990">(Jul 16 2021 at 01:57)</a>:</h4>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span> what I want is really simple, just run <code>:Make build</code> on vim and have vim compiling the compiler on a remote server and have the output of that added to vim's quickfix</p>



<a name="246176991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246176991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246176991">(Jul 16 2021 at 01:57)</a>:</h4>
<p>I have most of the things for that working</p>



<a name="246177005"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246177005" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246177005">(Jul 16 2021 at 01:57)</a>:</h4>
<p>but I guess would be nice to build a generic solution, something that's not very entangled to personal things like mine :)</p>



<a name="246177082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246177082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246177082">(Jul 16 2021 at 01:59)</a>:</h4>
<p>fwiw I also run rust-analyzer remotely; that works pretty well for me. I have a script that just does string replacement of each lsp line and adjusts the rpc length as needed too.</p>



<a name="246177168"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246177168" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246177168">(Jul 16 2021 at 02:00)</a>:</h4>
<p>(string replacement to remap the directory to a different one, since I keep things in ~/Edit locally and ~/Build remotely)</p>



<a name="246177202"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246177202" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246177202">(Jul 16 2021 at 02:01)</a>:</h4>
<p>These days my local computer is powerful enough to run RLS, but this was quite useful when I was constantly moving and on a laptop.</p>



<a name="246179568"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246179568" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246179568">(Jul 16 2021 at 02:52)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> That's perfect, that's exactly what I'm building. :)</p>



<a name="246180287"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246180287" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246180287">(Jul 16 2021 at 03:11)</a>:</h4>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span> can you share something with me? :)</p>



<a name="246181438"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246181438" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246181438">(Jul 16 2021 at 03:37)</a>:</h4>
<p>/me needs to hurry up and finish building it. :)</p>



<a name="246181561"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246181561" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246181561">(Jul 16 2021 at 03:39)</a>:</h4>
<p>Once it's ready, you should be able to just set vim's <code>makeprg</code> to include a prefix, and then it'll Just Work.</p>



<a name="246182134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/vim%20%2B%20remote%20server/near/246182134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/vim.20.2B.20remote.20server.html#246182134">(Jul 16 2021 at 03:52)</a>:</h4>
<p><span class="user-mention silent" data-user-id="239881">Josh Triplett</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/vim.20.2B.20remote.20server/near/246181438">said</a>:</p>
<blockquote>
<p>/me needs to hurry up and finish building it. :)</p>
</blockquote>
<p>didn't you tell me you were building this like 8 months ago? :P</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>